<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
class User_Bootstrap extends Zend_Application_Module_Bootstrap
{
	
	protected function _initModuleConfig()
    {
          // load ini file
          $iniOptions = new Zend_Config_Ini(dirname(__FILE__) . '/configs/module.ini');

          // Set this bootstrap options
          $this->setOptions($iniOptions->toArray());
    }

	public function _initPlugins()
    {
        $this->bootstrap('frontcontroller');
        $fc = $this->getResource('frontcontroller');
        $fc->registerPlugin(new User_Plugin_Auth_AuthPlugin());
    }

	protected function _initRoutes()
	{
		$config = new Zend_Config_Ini(dirname(__FILE__).'/configs/routes.ini');
		//echo '<pre>';print_r($config);die;
		$router = Zend_Controller_Front::getInstance()->getRouter();
		$router->addConfig($config, 'routes');

	}

}

?>
